package br.com.uniban;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import br.com.uniban.entity.Administrador;
import br.com.uniban.entity.QuestoesAvulsas;

public class AdminForm extends ActionForm {
	
	private static final long serialVersionUID = 9210027294349507655L;
	
	private Administrador admin = new Administrador();
	private List<QuestoesAvulsas> listaQuestoesPendente;

	public Administrador getAdmin() {
		return admin;
	}

	public void setAdmin(Administrador admin) {
		this.admin = admin;
	}

	public List<QuestoesAvulsas> getListaQuestoesPendente() {
		return listaQuestoesPendente;
	}

	public void setListaQuestoesPendente(List<QuestoesAvulsas> listaQuestoesPendente) {
		this.listaQuestoesPendente = listaQuestoesPendente;
	}
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		super.reset(mapping, request);
		this.admin.setId(null);
		this.admin.setLogin(null);
		this.admin.setSenha(null);
		this.listaQuestoesPendente = null;
	}	
}
